/*
 * @Descripttion: 
 * @Author: liuYaoYu
 * @Date: 2021-12-12 17:18:30
 * @LastEditors: liuYaoYu
 * @LastEditTime: 2021-12-12 17:31:52
 */
package main
import (
	"fmt"
)

type Myfun func(int,int)(int)
func calc( fun Myfun, n1 int,n2 int)int{
	return fun(n1,n2)
}
func main(){
	fmt.Println("=========>",calc(func (num1 int, num2 int)int{return num1+num2},20,40))
}